﻿/* Author: Tomer Paz
   games.com
   2007
*/

/* CMD Response structure class */

package monopoly.CMD {

	public class CMDResponse
		{
		/* some constants types definitions */
		
		public static const STRING:uint		=	0;
		public static const UINT:uint		=	1;
		public static const INT:uint		=	2;
		public static const AMFOBJECT:uint	=	3;
		public static const BYTES:uint		= 	4;
		

		private var _ClientID:uint;			// client id
		private var _SessionID:String;		// session id defined by game server- hashed in String
		private var _Command:uint;			// a constant command type (CMD command)
		private var _Size:uint;				// reported size of content
		private var _Type:uint;				// Content-Type (sounds familiar ? :-) )
		private var _Content:Object;		// shall be UTF string content by default...
		
		public function CMDResponse():void { }
		
		public function set ClientID(ClientID:uint):void { _ClientID = ClientID; }
		public function get ClientID():uint { return _ClientID; }
		public function set SessionID(SessionID:String):void { _SessionID = SessionID; }
		public function get SessionID():String { return _SessionID; }
		public function set Command(command:uint):void { _Command = command; }
		public function get Command():uint { return _Command; }
		public function set Size(size:uint) { _Size = size; }
		public function get Size():uint { return _Size; }
		public function set Type(type:uint):void { _Type = type; }
		public function get Type():uint { return _Type; }
		public function set Content(Content:Object):void { _Content = Content; }
		public function get Content():Object { return _Content; }
		}
}